package models

import "gorm.io/gorm"

type Tag struct {
	gorm.Model

	Name string `form:"name" gorm:"type:varchar(20);not null;comment:标签名" valid:"Required;MinSize(1)" json:"name"`
	Num int `form:"num" gorm:"type:tinyint(3);default 0;comment:标签的文章数量" json:"num"`
}
